﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Common;
namespace EHR18
{
    public partial class kanban2 : BaseChild
    {

        public kanban2()
        {
            InitializeComponent();
        }
        private static kanban2 frm = null;
        public static kanban2 getInstance()
        {
            if (frm == null || frm.IsDisposed)
            {
                frm = new kanban2();
            }
            return frm;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            var names = CountManager.GetNames();
            if(names!=null&&names.Length>0)
            {
                foreach(var name in names)
                {
                    var controls = this.flowLayoutPanel1.Controls.Find(name, false);
                    if (controls != null && controls.Length > 0)
                    {
                    }
                    else
                    {
                        this.flowLayoutPanel1.Controls.Add(new usrngrate(name));
                    }
                }

            }
        }
    }
}
